package org.demo2;

import org.springframework.batch.core.StepExecution;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;

public class CreditBillProcessor implements ItemProcessor<CreditBill, CreditBill> {
    @Autowired
    public StepExecution stepExecution;

    @Override
    public CreditBill process(CreditBill creditBill) throws Exception {
        System.out.println(stepExecution.getCommitCount());
        return creditBill;
    }
}
